package com.canaan.business.domain.inOutStock;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;
import com.canaan.common.annotation.TableName;
/**
 * 回库单对象 wms_return_stock_bill
 *
 * @author canaan
 * @date 2025-04-02
 */
@ApiModel(description = "wms_return_stock_bill")
@TableName("wms_return_stock_bill")
public class ReturnStockBill extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 料架号 */
    @Excel(name = "料架号")
    @ApiModelProperty("料架号")
    private String shelfNo;

    /** 托盘号 */
    @Excel(name = "托盘号")
    @ApiModelProperty("托盘号")
    private String trayNo;

    /** 源库位号 */
    @Excel(name = "源库位号")
    @ApiModelProperty("源库位号")
    private String sourceLocation;

    /** 目标库位号 */
    @Excel(name = "目标库位号")
    @ApiModelProperty("目标库位号")
    private String destLocation;

    /** 单据状态 1新建 2进行中 3完成 4已取消 */
    @Excel(name = "单据状态 1新建 2进行中 3完成 4已取消")
    @ApiModelProperty("单据状态 1新建 2进行中 3完成 4已取消")
    private Integer orderStatus;

    /** 关联单据 */
    @Excel(name = "关联单据")
    @ApiModelProperty("关联单据")
    private String relOrderNo;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("完成时间")
    private Date completeTime;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("完成时间")
    private String delFlag;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Integer sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setShelfNo(String shelfNo)
    {
        this.shelfNo = shelfNo;
    }

    public String getShelfNo()
    {
        return shelfNo;
    }
    public void setTrayNo(String trayNo)
    {
        this.trayNo = trayNo;
    }

    public String getTrayNo()
    {
        return trayNo;
    }
    public void setSourceLocation(String sourceLocation)
    {
        this.sourceLocation = sourceLocation;
    }

    public String getSourceLocation()
    {
        return sourceLocation;
    }
    public void setDestLocation(String destLocation)
    {
        this.destLocation = destLocation;
    }

    public String getDestLocation()
    {
        return destLocation;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }
    public void setRelOrderNo(String relOrderNo)
    {
        this.relOrderNo = relOrderNo;
    }

    public String getRelOrderNo()
    {
        return relOrderNo;
    }
    public void setCompleteTime(Date completeTime)
    {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime()
    {
        return completeTime;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("no", getNo())
                .append("shelfNo", getShelfNo())
                .append("trayNo", getTrayNo())
                .append("sourceLocation", getSourceLocation())
                .append("destLocation", getDestLocation())
                .append("orderStatus", getOrderStatus())
                .append("relOrderNo", getRelOrderNo())
                .append("completeTime", getCompleteTime())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("createTime", getCreateTime())
                .append("sort", getSort())
                .toString();
    }
}
